import java.util.ArrayList;
import java.util.List;

// Building 类
public class A1_2 {
    public static void main(String[] args) {
    }

    public class Building {
        private String name; 
        private List<Course> courseslist;

        public Building(String name) {
            this.name = name;
            this.courses = new ArrayList<>();
        }

        public String getName() {
            return name;
        }

        public void addCourse(Course course) {
            courses.add(course);
       
        }

        public List<Course> getCourses() {
            return courses;
        }
    }

    // Course 类
    public class Course {
        private String name; 
        private String time;

        public Course(String name) {
            this.name = name;
        }

        public String getName() {
            return name;
        }

        public String getTime() {
            return time;
        }

      
    }

    // College 类
    public class College {
        private List<Building> buildinglist;
        private List<Course> courselist;

        public College() {
            this.buildings = new ArrayList<>();
            this.courses = new ArrayList<>();
        }

        public void addBuilding(Building building) {
            buildings.add(building);
        }

        public void addCourse(Course course) {
            courses.add(course);
        }

        public List<Building> getBuildings() {
            return buildings;
        }

        public List<Course> getCourses() {
            return courses;
        }
    }
}
